/* ==================== COLOR SCHEME ==================== */
:root {
    --primary-dark: #0F1419;
    --primary-blue: #1a2749;
    --accent-cyan: #00D9FF;
    --accent-teal: #00BCD4;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E6ED;
    --text-dark: #1a1a1a;
    --text-light: #666666;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== HAMBURGER BUTTON ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 100%;
        max-width: 100vw;
        border-bottom: 1px solid var(--medium-gray);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--medium-gray);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:active {
        color: var(--accent-cyan);
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 20, 25, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0, 217, 255, 0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-teal) 0%, rgba(0, 188, 212, 0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero .btn {
    animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.15);
    border-color: var(--accent-cyan);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.about h2 {
    color: var(--accent-cyan);
    margin-bottom: 30px;
    background: none;
    -webkit-text-fill-color: unset;
}

.about p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==================== RESPONSIVE ==================== */

/* =========== LARGE DEVICES (1440px+) =========== */
@media (min-width: 1440px) {
    .container {
        padding: 0 50px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }

    .hero {
        padding: 180px 0 120px;
    }
}

/* =========== MEDIUM DEVICES (1024px - 1439px) =========== */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .hero {
        padding: 150px 0 100px;
    }
}

/* =========== TABLET LANDSCAPE (768px - 1023px) =========== */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 25px;
        font-size: 0.85rem;
    }

    .nav-links a {
        padding: 8px 12px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 120px 0 80px;
        margin-top: 70px;
    }

    .hero h1 {
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .service-card {
        padding: 35px 25px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .about {
        padding: 80px 0;
    }

    .about p {
        font-size: 1rem;
        max-width: 500px;
    }

    .contact {
        padding: 80px 0;
    }

    .contact p {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .services {
        padding: 80px 0;
    }
}

/* =========== TABLET PORTRAIT (600px - 767px) =========== */
@media (max-width: 767px) and (min-width: 600px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.75rem;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    .btn {
        padding: 9px 20px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 0 60px;
        margin-top: 65px;
    }

    .hero h1 {
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero::before {
        width: 300px;
        height: 300px;
        right: -10%;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        left: -5%;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .services {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .about h2 {
        font-size: 1.6rem;
    }

    .about p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .contact {
        padding: 60px 0;
    }

    .contact h2 {
        font-size: 1.6rem;
    }

    .contact p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* =========== SMALL PHONES (480px - 599px) =========== */
@media (max-width: 599px) and (min-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.85rem;
    }

    .navbar {
        padding: 10px 0;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    }

    .logo {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.7rem;
    }

    .nav-links a {
        padding: 4px 8px;
    }

    .nav-links a::after {
        display: none;
    }

    .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
        display: inline-block;
        width: auto;
    }

    .hero {
        padding: 90px 0 50px;
        margin-top: 60px;
    }

    .hero h1 {
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .hero::before {
        width: 200px;
        height: 200px;
        opacity: 0.05;
    }

    .hero::after {
        width: 180px;
        height: 180px;
        opacity: 0.05;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card::before {
        height: 3px;
    }

    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .service-card h3 {
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .services {
        padding: 50px 0;
    }

    .about {
        padding: 50px 0;
    }

    .about h2 {
        font-size: 1.3rem;
    }

    .about p {
        font-size: 0.85rem;
        max-width: 100%;
        line-height: 1.6;
    }

    .contact {
        padding: 50px 0;
    }

    .contact h2 {
        font-size: 1.3rem;
    }

    .contact p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .footer {
        padding: 25px 0;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* =========== EXTRA SMALL PHONES (< 480px) =========== */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-content {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 0.85rem;
        flex: 1;
    }

    .nav-links {
        gap: 8px;
        font-size: 0.65rem;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
        margin-top: 5px;
    }

    .nav-links a {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .nav-links a::after {
        display: none;
    }

    .btn {
        padding: 7px 16px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 200px;
    }

    .hero {
        padding: 80px 0 40px;
        margin-top: 55px;
    }

    .hero h1 {
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero::before {
        width: 150px;
        height: 150px;
        opacity: 0.03;
        right: -5%;
    }

    .hero::after {
        width: 120px;
        height: 120px;
        opacity: 0.03;
        left: 0;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .service-card {
        padding: 18px 12px;
        border-radius: 8px;
    }

    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .services {
        padding: 40px 0;
    }

    .about {
        padding: 40px 0;
    }

    .about h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .about p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .contact {
        padding: 40px 0;
    }

    .contact h2 {
        font-size: 1.1rem;
    }

    .contact p {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .footer {
        padding: 20px 0;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

/* =========== ACCESSIBILITY & TOUCH =========== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices - increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 20px;
    }

    .nav-links a {
        padding: 10px 15px;
    }

    .service-card {
        transform: translateY(0);
    }

    .service-card:active {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 217, 255, 0.15);
    }
}

/* =========== LANDSCAPE ORIENTATION =========== */
@media (orientation: landscape) and (max-height: 600px) {
    .navbar {
        padding: 8px 0;
    }

    .hero {
        padding: 60px 0 40px;
        margin-top: 50px;
    }

    h1 {
        font-size: 2rem;
    }

    .services-grid {
        gap: 20px;
    }

    .about,
    .contact {
        padding: 40px 0;
    }
}

/* =========== HIGH DPI DISPLAYS =========== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .nav-links a::after {
        height: 1px;
    }
}